package com.boco.blch.analysiser.compliance.HW.data;


import com.boco.blch.analysiser.compliance.ComplianceResolved;

/**
 * @author 黄戈
 * HBaseHBase日志记录完整性安全基线要求项-数据节点
 *
 */

public class BOCO_Hbase_LogAudit_LogRecordComplete implements ComplianceResolved {
	


	
	public int realEchoResolved(String echoResult) {
	
		if(!echoResult.equals("")&&echoResult!= null&&(!echoResult.contains(NoPermission1)&&!echoResult.contains(NoPermission2)&&!echoResult.contains(NoPermission3))){
			String DataResult=echoResult.substring(echoResult.indexOf("HBase-start")+"HBase-start\n".length(),echoResult.indexOf("HBase-end")).trim();
			if(!DataResult.contains(NotFindFile)&&!DataResult.contains("boco-HBase-result:error")){
		       System.out.println(DataResult);
		      if(DataResult.startsWith("INFO,RFAS||")&&!DataResult.endsWith("||")){
		    	  return SUCCESS;
		      }else{
		    	  return FAILED;
		      }
				
			
		 }else{
			 
			 return FAILED;
		 }
		}else{
			
			return FAILED;
		}
	
		
	}
	/*
	
*/
}
